package com.ruoyi.cms.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 系统字典对象 cms_dict
 *
 * @author houyong
 * @date 2025-11-08
 */
public class CmsDict extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Long id;

    /**
     * 字典类型（如yxpmlx、xmzydl）
     */
    @Excel(name = "字典类型", readConverterExp = "如=yxpmlx、xmzydl")
    private String dictType;

    /**
     * 字典编码
     */
    @Excel(name = "字典编码")
    private String code;

    /**
     * 字典文本（显示值）
     */
    @Excel(name = "字典文本", readConverterExp = "显=示值")
    private String text;

    /**
     * 字典值（实际存储值）
     */
    @Excel(name = "字典值", readConverterExp = "实=际存储值")
    private String value;

    /**
     * 排序号
     */
    @Excel(name = "排序号")
    private Long sort;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public String getDictType() {
        return dictType;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("dictType", getDictType())
                .append("code", getCode())
                .append("text", getText())
                .append("value", getValue())
                .append("remark", getRemark())
                .append("sort", getSort())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
